package com.glory.gloryquickui.entity

import com.google.gson.annotations.SerializedName

/**
 * @author HX
 * @date 2021/4/7
 * @desc 下拉类控件属性
 */
data class SingleChooseOptionsBean(
    var optionList: MutableList<Option> = mutableListOf(),
    var dataType:String = "",
    var dictType:String = "",
    var parentId:String = "",
    var dependObject:String = "",
    var dictLabel:String = "",
    var dictValue:String = "",
    var value:String = "",
    var label:String = "",
    var dataTable: FieldBean.BaseData = FieldBean.BaseData(),
    @SerializedName(value = "packageInfo", alternate = ["package"])
    var packageInfo:Package = Package()
) {
    data class Option(
        var label: String = "", // 选项一
        var value: String = "", // 1
        var parentId: String = "",
        var isSelect: Boolean = false, // false
        var disabled: Boolean = true, // false
    )

    data class Props(
        var props: Props = Props()
    ) {
        data class Props(
            var children: String = "", // children
            var label: String = "", // label
            var multiple: Boolean = false, // false
            var value: String = "" // value
        )
    }

    data class Package(
        var id: Int = 0,
        var dataName: String = "",
        var params:ArrayList<DataTableBean> = arrayListOf()
    )
}